import { legacy_createStore as createStore, combineReducers } from 'redux'
import carReducer from './car'

const rootReducer = combineReducers({
  car: carReducer
})

const store = createStore(rootReducer)

export type RootState = ReturnType<typeof store.getState>

export default store